package net.minecraft.src;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import net.minecraft.src.NetHandler;
import net.minecraft.src.Packet;

public class Packet7UseEntity extends Packet {

    public int playerEntityId;
    public int targetEntity;
    public int isLeftClick;


    public Packet7UseEntity() {
        super();
    }

    public void readPacketData(DataInputStream var1) throws IOException {
        this.playerEntityId = var1.readInt();
        this.targetEntity = var1.readInt();
        this.isLeftClick = var1.readByte();
    }

    public void writePacketData(DataOutputStream var1) throws IOException {
        var1.writeInt(this.playerEntityId);
        var1.writeInt(this.targetEntity);
        var1.writeByte(this.isLeftClick);
    }

    public void processPacket(NetHandler var1) {
        var1.func_6006_a(this);
    }

    public int getPacketSize() {
        return 9;
    }
}
